using Estsh.Core.Base;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Estsh.Core.Model.Extend.Models
{
    /// <summary>
    /// ，数据实体对象
    /// </summary>
    [Table("mes_rework_repair")]
    [Serializable]
    public class MesReworkRepair : BaseEntity
    {
        /// <summary>
        /// 工单号
        /// </summary>
        [Column("order_no")]
        [DisplayName(" ")]
        public string OrderNo { get; set; }
        /// <summary>
        /// 产线id
        /// </summary>
        [Column("pdline_id")]
        [DisplayName(" ")]
        public int? PdlineId { get; set; }
        /// <summary>
        /// 产线名称
        /// </summary>
        [Column("pdline_name")]
        [DisplayName(" ")]
        public string PdlineName { get; set; }
        /// <summary>
        /// 成品条码
        /// </summary>
        [Column("carton_no")]
        [DisplayName(" ")]
        public string CartonNo { get; set; }
        /// <summary>
        /// 零件号id
        /// </summary>
        [Column("part_id")]
        [DisplayName(" ")]
        public int? PartId { get; set; }
        /// <summary>
        /// 零件号名称
        /// </summary>
        [Column("part_name")]
        [DisplayName(" ")]
        public string PartName { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        [Column("qty")]
        [DisplayName(" ")]
        public decimal? Qty { get; set; }
        /// <summary>
        /// 1:完成2:未完成
        /// </summary>
        [Column("status")]
        [DisplayName(" ")]
        public int? Status { get; set; }
        /// <summary>
        /// 新的成品条码
        /// </summary>
        [Column("new_carton_no")]
        [DisplayName(" ")]
        public string NewCartonNo { get; set; }


    }
}
